package com.honglang.module.user.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="user")
public class User {

	/**
	 * @uml.property  name="id"
	 */
	
	private Integer id;

	/**
	 * @uml.property  name="userName"
	 */
	private String userName;

	/**
	 * @uml.property  name="password"
	 */
	private String password;
	

	/**
	 * @uml.property  name="registerDate"
	 */
	private Date registerDate;
	
	
	/**
	 * @uml.property  name="lastLoginDate"
	 */
	private Date lastLoginDate;
	

	/**
	 * @uml.property  name="email"
	 */
	private String email;
	
	
	private Integer role;
	
	
	
	private boolean male;
	
	
	
	private String web;
	
	
	
	
	
	
	
	
	
	/**
	 * Getter of the property <tt>userName</tt>
	 * @return  Returns the userName.
	 * @uml.property  name="userName"
	 */
	@Column
	public String getUserName() {
		return userName;
	}

	/**
	 * Setter of the property <tt>userName</tt>
	 * @param userName  The userName to set.
	 * @uml.property  name="userName"
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}


	/**
	 * Getter of the property <tt>password</tt>
	 * @return  Returns the password.
	 * @uml.property  name="password"
	 */
	@Column
	public String getPassword() {
		return password;
	}

	/**
	 * Setter of the property <tt>password</tt>
	 * @param password  The password to set.
	 * @uml.property  name="password"
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * Getter of the property <tt>registerDate</tt>
	 * @return  Returns the registerDate.
	 * @uml.property  name="registerDate"
	 */
	@Column
	public Date getRegisterDate() {
		return registerDate;
	}

	/**
	 * Setter of the property <tt>registerDate</tt>
	 * @param registerDate  The registerDate to set.
	 * @uml.property  name="registerDate"
	 */
	public void setRegisterDate(Date registerDate) {
		this.registerDate = registerDate;
	}


	/**
	 * Getter of the property <tt>lastLoginDate</tt>
	 * @return  Returns the lastLoginDate.
	 * @uml.property  name="lastLoginDate"
	 */
	@Column
	public Date getLastLoginDate() {
		return lastLoginDate;
	}

	/**
	 * Setter of the property <tt>lastLoginDate</tt>
	 * @param lastLoginDate  The lastLoginDate to set.
	 * @uml.property  name="lastLoginDate"
	 */
	public void setLastLoginDate(Date lastLoginDate) {
		this.lastLoginDate = lastLoginDate;
	}


	/**
	 * Getter of the property <tt>email</tt>
	 * @return  Returns the email.
	 * @uml.property  name="email"
	 */
	@Column
	public String getEmail() {
		return email;
	}

	/**
	 * Setter of the property <tt>email</tt>
	 * @param email  The email to set.
	 * @uml.property  name="email"
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * Getter of the property <tt>id</tt>
	 * @return  Returns the id.
	 * @uml.property  name="id"
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Integer getId() {
		return id;
	}

	/**
	 * Setter of the property <tt>id</tt>
	 * @param id  The id to set.
	 * @uml.property  name="id"
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	@Column
	public Integer getRole() {
		return role;
	}

	public void setRole(Integer role) {
		this.role = role;
	}

	@Column
	public boolean isMale() {
		return male;
	}

	public void setMale(boolean male) {
		this.male = male;
	}
	
	@Column
	public String getWeb() {
		return web;
	}

	public void setWeb(String web) {
		this.web = web;
	}
	
	
	
	
	
}
